package com.witte.service;


import com.witte.entity.Customer;
import com.witte.entity.Product;
import com.witte.entity.Service;

import java.util.List;
import java.util.Map;

public interface CusService {
	//define abstract methods : select all customers from table 'customers'.
    List<Customer> selectAllCus();

    //define abstract methods : select all customers whom be distinguished by level.
    Map<String,List<Object>> selectAllCusByLevel();

    //define abstract methods : select all customers whom be distinguished by credit(1-5).
    Map<String,List<Object>> selectAllCusByCredit();

    //define abstract methods : select all customers whom be distinguished by satisfy(1-5).
    Map<String,List<Object>> selectAllCusByStatify();

    int updateByCusNo(Customer customer);

    public List<Customer> getNameList(String name,Integer beginPage,Integer pageSize);

    public int getNameCount(String name);

    int insert(Customer customer);

    public List<Customer> getStateList(Integer beginPage, Integer pageSize);

    public int getRecodeCount();

    int deleteByPrimaryKey(Integer customerno);

    Customer selectByNo(Integer customerno);
    
    String selectNameByNo(Integer no);
}
